<?php

class sectorOverview extends bee\form
{ //protected static $__formID = "frm201201271553";
  public $__caption = "Sector overview";
  public $__version = "1.0";

  protected $sector;
  protected $grid;

  public function createForm($evt)
  { $this->sector = new sector();
    $this->sector->org_id = $this->__app->getClientFilter();
    $this->grid = $this->grid = sectorGrid::getInstance();
    $this->grid->setDataSource($this->sector);
  }
}

class sectorGrid extends bee\grid
{ public function createGrid($evt)
  { $this->__gridID = "grd201201270947";
    $this->setColumnProperties(array("name" => "name", "caption" => "Name", "width" => "150" ));
    $this->setColumnProperties(array("name" => "description", "caption" => "Description", "width" => "350" ));
    $this->detailFormName = "editSector";
    $this->caption = "Sector overview";
  }
}

